
#ifndef PREVIEW_H_INCLUDED
#define PREVIEW_H_INCLUDED

#include <d3dx9.h>

//Handles 3D circuit preview
class CPreview
{
public:
	CPreview();
	~CPreview();

	bool init(HWND previewHWND, LPDIRECT3DDEVICE9 pDevice, LPDIRECT3DSWAPCHAIN9 swapChain);
	bool render();
	void update();
	void cleanUp();

private:
	HWND                 hwnd;
	LPDIRECT3DDEVICE9    pD3DDevice;
	LPDIRECT3DSWAPCHAIN9 pSwapChain;
};

#endif
